export default defineAppConfig({
  pages: [
    "pages/login/index", //登录页
    "pages/login/register/index", //注册
    "pages/index/index", // 首页
    "pages/cate/index",
    "pages/cart/index",
    "pages/my/index",
    "pages/my/withdrawal/index",
    "pages/my/setting/index",
    "pages/my/setting/password/index",

    "pages/my/setting/info/index",

    "pages/cart/check/index",
    "pages/cart/check/checkLog/index",
    "pages/cart/binding/index",
    "pages/cart/binding/bingdinLog/index",
    "pages/cart/coupon/index",
    "pages/cart/coupon/couponLog/index",
    "pages/cart/pipeline/index", // 发展中用户
    "pages/cart/lease/index", // 在租用户
    "pages/cart/overdue/index", // 逾期

    "pages/index/notice/index", // 公告页列表
    "pages/index/notice/details/index", // 公告页详情
    "pages/cart/dianchi/index",

    // 绑定电池
    "pages/cart/bangdingdianchi/index",
    // 解绑电池
    "pages/cart/jiebangdianchi/index",
    // 电池状态查询
    "pages/cart/batteryStatus/index",
    // 换电柜管理
    "pages/cart/batteryExchangeCabinet/index",

    // 电池日志
    "pages/cart/dianchiLog/index",

    // 其余日志
    "pages/commonLog/channelLog/index",
    "pages/commonLog/overdueLog/index",
    "pages/commonLog/bindingLog/index",
    "pages/commonLog/unbindLog/index",
    // 'pages/my/setting/password/index',
  ],
  window: {
    backgroundTextStyle: "light",
    navigationBarBackgroundColor: "#d43c33",
    navigationBarTitleText: "WeChat",
    navigationBarTextStyle: "white",
  },
  tabBar: {
    // custom: true,
    color: "#000000",
    selectedColor: "#DC143C",
    backgroundColor: "#ffffff",
    list: [
      {
        pagePath: "pages/index/index",
        selectedIconPath: "images/tabbar_home_on.png",
        iconPath: "images/tabbar_home.png",
        text: "首页",
      },
      {
        pagePath: "pages/cart/index",
        selectedIconPath: "images/tabbar_cart_on.png",
        iconPath: "images/tabbar_cart.png",
        text: "换电操作",
      },
      {
        pagePath: "pages/my/index",
        selectedIconPath: "images/tabbar_my_on.png",
        iconPath: "images/tabbar_my.png",
        text: "个人中心",
      },
    ],
  },
  permission: {
    "scope.userLocation": {
      desc: "你的位置信息将用于小程序位置接口的效果展示",
    },
  },
  requiredBackgroundModes: ["audio", "location"],
  requiredPrivateInfos: ["getLocation"],
  // subpackages: [
  //   {
  //     root: "demo1",
  //     pages: ["pages/login"],
  //     independent: true,
  //   },
  //   {
  //     root: "demo2",
  //     pages: ["pages/cate"],
  //     independent: true,
  //   },
  //   {
  //     root: "demo3",
  //     pages: ["pages/my"],
  //     independent: true,
  //   },
  //   {
  //     root: "demo4",
  //     pages: ["pages/cart"],
  //     independent: true,
  //   },
  //   {
  //     root: "demo5",
  //     pages: ["pages/index"],
  //     independent: true,
  //   },
  // ],
});
